package com.maple.callback.event.boot;

import org.springframework.context.ApplicationEvent;

public class UserRegisterEvent extends ApplicationEvent{
	
	private static final long serialVersionUID = 1L;

	private User user;
	/**
	 * @param source 指的是发生事件的对象	this关键字代替本类对象
	 * @param user
	 */
	public UserRegisterEvent(Object source,User user) {
		super(source);
		this.user =user;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	
}
